* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #121212;
  color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #333;
}

h1 {
  margin-bottom: 10px;
  color: #f4645f;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: #aaa;
}

.breadcrumb a {
  color: #f4645f;
  text-decoration: none;
  cursor: pointer;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.browser {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.item {
  background-color: #222;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
  cursor: pointer;
}

.item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.item-folder {
  border: 1px solid #444;
}

.item-video {
  border: 1px solid #666;
}

.item-thumbnail {
  width: 100%;
  height: 120px;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.folder-icon {
  font-size: 50px;
  color: #f4645f;
}

.video-icon {
  font-size: 50px;
  color: #4caf50;
}

.item-info {
  padding: 10px;
}

.item-name {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-container {
  display: none;
  flex-direction: column;
  gap: 20px;
}

#video-player {
  width: 100%;
  border-radius: 8px;
  background-color: #000;
}

.video-info {
  padding: 15px 0;
}

.back-button {
  align-self: flex-start;
  background-color: #f4645f;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.back-button:hover {
  background-color: #e35a55;
}

.loading {
  grid-column: 1 / -1;
  text-align: center;
  color: #aaa;
  padding: 40px;
}

@media (max-width: 768px) {
  .browser {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .item-thumbnail {
    height: 100px;
  }
} 